﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lazy
{
    class Computer
    {
        private string brand;
        public string Brand { get => brand; set => brand = value; }
        internal IUSB Usb1 { get => usb1; set => usb1 = value; }
        internal IUSB Usb2 { get => usb2; set => usb2 = value; }

        private IUSB usb1;
        private IUSB usb2;

        public Computer(string brand) { this.brand = brand; }

        public void Boot() {
            Console.WriteLine("{0}启动中...",this.brand);
        }
        public void ImportD() {
            this.usb1.Import();
            this.Usb2.Import();
        }
        public void AlterD() {
            this.usb1.Alter();
            this.usb2.Alter();
        }
        public void end() {
            Console.WriteLine("{0}关机...",this.brand);
        }
    }
}
